﻿#include "UdpCodec_Test.h"

#include "UdpController.h"

UdpCodec_Test::UdpCodec_Test()
{
  setObjectName(getClassNameFirstLow<UdpCodec_Test>());
}

UdpCodec_Test::~UdpCodec_Test()
{

}

DataPackage_UdpCodec* UdpCodec_Test::decode(DataPackage_UdpCodec* dataPackageInfo)
{
  (void)dataPackageInfo;
//  udpController->BBR_receive(dataPackageInfo);
  return Q_NULLPTR;
}

UdpController* UdpCodec_Test::getUdpController()const
{
  return udpController;
}

UdpCodec_Test* UdpCodec_Test::setUdpController(UdpController*const udpController)
{
  this->udpController=udpController;
  printInjection(this,udpController);
  return this;
}

void UdpCodec_Test::objectAutoInjection(QHash<QString,QObject*>* objMap)
{
  setUdpController(getObjFromMap<UdpController>(objMap));
}
